package cn.edu.guet.springmvcdemo.mvc;
/*
 *   @Studio:CHJY · 源梦科技
 *   @Author:lzl
 *   @Ide:IntelliJ IDEA
 *   @Creation time:2021/7/2 13:22
 */

import java.lang.reflect.Method;

public class ControllerMapping {
    private Class<?> controllerClass;
    private Method handleMethod;

    public ControllerMapping(Class<?> controllerClass, Method handleMethod) {
        this.controllerClass = controllerClass;
        this.handleMethod = handleMethod;
    }
    public ControllerMapping(){}

    public Class<?> getControllerClass() {
        return controllerClass;
    }

    public void setControllerClass(Class<?> controllerClass) {
        this.controllerClass = controllerClass;
    }

    public Method getHandleMethod() {
        return handleMethod;
    }

    public void setHandleMethod(Method handleMethod) {
        this.handleMethod = handleMethod;
    }

    @Override
    public String toString() {
        return "控制器类与方法"+controllerClass.getSimpleName()+"."+handleMethod.getName();
    }
}
